home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / contrib / xyps-wdo.tex < prev    next >
Encoding:
Text File  |  1995-03-15  |  2.2 KB  |  53 lines

  1. %% xyps-wdo.tex from $Id: xyps-wdo.doc,v 2.10 1994/06/15 12:46:03 ross Exp $
  2. %%
  3. %% XY-pic ``dviwindo'' PostScript backend support.
  4. %% Copyright (c) 1993-1994 Ross Moore <ross@mpce.mq.edu.au>
  5. %%
  6. %% This file is part of the XY-pic package for graphs and diagrams in TeX.
  7. %% See the companion README and INSTALL files for further information.
  8. %% Copyright (c) 1991-1994 Kristoffer H. Rose <kris@diku.dk>
  9. %%
  10. %% The XY-pic package is free software; you can redistribute it and/or modify
  11. %% it under the terms of the GNU General Public License as published by the
  12. %% Free Software Foundation; either version 2 of the License, or (at your
  13. %% option) any later version.
  14. %%
  15. %% The XY-pic package is distributed in the hope that it will be useful, but
  16. %% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  17. %% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  18. %% for more details.
  19. %%
  20. %% You should have received a copy of the GNU General Public License along
  21. %% with this package; if not, write to the Free Software Foundation, Inc.,
  22. %% 675 Mass Ave, Cambridge, MA 02139, USA.
  23. %%
  24. \ifx\xypswdoloaded\relax \message{not reloaded}\endinput \fi
  25. \let\xypswdoloaded=\relax \xycatcodes
  26. \xywarnifdefined\dviwindoSpecial@
  27. \xywarnifdefined\dviwindoMacro@
  28. \xywarnifdefined\dviwindoRaw@
  29. \xywarnifdefined\dviwindoInclude@
  30. {\catcode`"=11 \catcode`:=11
  31.  \gdef\dviwindoSpecial@#1{\firstPS@@\special{pstext="#1"}}
  32.  \gdef\dviwindoMacro@#1{\firstPS@@\special{pstext="mark{#1}xy"}}
  33.  \gdef\dviwindoRaw@#1{\firstPS@@\special{pstext="#1"}}%
  34.  \gdef\dviwindoInclude@#1{\firstPS@@\special{psfile=#1}}
  35. }
  36. \xydef@\dviwindo@{\gdef\dvitype@{dviwindo }\dvimessage@
  37.  \global\let\PSspecial@=\dviwindoSpecial@
  38.  \global\let\PSmacro@=\dviwindoMacro@
  39.  \global\let\PSdict@=\dviwindoMacro@
  40.  \global\let\PSraw@=\dviwindoRaw@
  41.  \global\let\PSinclude@=\dviwindoInclude@
  42.  \global\let\xyPSobeylines@=\obeyDVIWINDOlines@
  43.  \ifUsePSdict@@
  44.  \gdef\firstPS@@{\firstPS@ \includeXYPSdict@}%
  45.  \gdef\endXYdict@{\firstPS@}%
  46.  \else
  47.  \gdef\firstPS@@{\firstPS@ \@PSshipout}\gdef\endXYdict@{\firstPS@}\fi 
  48.  }%
  49. \xywarnifdefined\obeyDVIWINDOlines@
  50. {\catcode`\^^M=\active
  51.  \gdef\obeyDVIWINDOlines@{\catcode`\^^M=\active \let^^M=\par \obeyspaces}}
  52. \xyendinput
  53.